//
//  addStockInWatchList.h
//  iStock Global
//
//  Created by Andy on 2010/11/17.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "addStockInWatchListSetUp.h"
#import "InAppPurchase.h"
#import "TableCellAddStockWatchList.h"

@protocol addStockInWatchListDelgete;

@interface addStockInWatchList : UITableViewController<InAppPurchaseDelgete,UIAlertViewDelegate,addStockInWatchListSetUpDelgete,UISearchBarDelegate,TableCellAddStockWatchListDelgete> {
   id <addStockInWatchListDelgete> delegate;	
   id AppleDeglate;     
	NSMutableArray *search_country; //要搜尋的國家市場
	NSMutableArray *all_search_country; //要搜尋的國家市場	
	
	NSMutableArray *searchArrayC;
	NSMutableArray *searchArrayN;
	NSMutableArray *searchArrayIC;	
	NSMutableArray *all_code;
	NSMutableArray *all_name;	
	NSMutableArray *all_id_class;	
	
    NSMutableArray *searchArray_online_code;  
    NSMutableArray *searchArray_online_name;     
    NSMutableArray *searchArray_online_id_class;
    NSMutableArray *searchArray_online_exchange;    
    
	UITableView *myTable;
	UISearchBar *search;
    UISegmentedControl *segmetnctl;	 
	 
	NSMutableArray *watchlist_name;	
	NSMutableArray *watchlist_code;	
	NSMutableArray *watchlist_id_class;	
	
    UIPopoverController* popController;    
}
@property(assign) id AppleDeglate;

- (void) buildSearchArrayFrom: (NSString *) matchString;

-(id)initWithWatchListCode:(NSMutableArray *)watchlistcode 
			 WatchListName:(NSMutableArray *)watchlistname
		  WatchListIdClass:(NSMutableArray *)watchlistid_class
			watchlistTitle:(NSString *)Title;

-(void)datasql_code_name:(NSString *) country;
-(void)showSetup;
-(void)Setup_DefaultValue;
-(void)Backup; 

@property (nonatomic, assign) id <addStockInWatchListDelgete> delegate;
@end

@protocol addStockInWatchListDelgete
- (void)addStockInWatchLisControllerDidFinish:(addStockInWatchList *)controller;
@end

